package com.laowang.project.system.mapper;

import java.util.List;

import com.laowang.project.system.domain.MyCyhShopProduct;

/**
 * 商家团购产品Mapper接口
 *
 * @author laowang
 * @date 2023-07-24
 */
public interface MyCyhShopProductMapper {
    /**
     * 查询商家团购产品
     *
     * @param id 商家团购产品ID
     * @return 商家团购产品
     */
     MyCyhShopProduct selectMyCyhShopProductById(Integer id);

    /**
     * 查询商家团购产品列表
     *
     * @param myCyhShopProduct 商家团购产品
     * @return 商家团购产品集合
     */
     List<MyCyhShopProduct> selectMyCyhShopProductList(MyCyhShopProduct myCyhShopProduct);

    /**
     * 新增商家团购产品
     *
     * @param myCyhShopProduct 商家团购产品
     * @return 结果
     */
    int insertMyCyhShopProduct(MyCyhShopProduct myCyhShopProduct);

    /**
     * 修改商家团购产品
     *
     * @param myCyhShopProduct 商家团购产品
     * @return 结果
     */
    int updateMyCyhShopProduct(MyCyhShopProduct myCyhShopProduct);

    /**
     * 删除商家团购产品
     *
     * @param id 商家团购产品ID
     * @return 结果
     */
    int deleteMyCyhShopProductById(Integer id);

    /**
     * 批量删除商家团购产品
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteMyCyhShopProductByIds(Integer[] ids);

    List<MyCyhShopProduct> selectMyCyhShopProductListWeb(MyCyhShopProduct myCyhShopProduct);

    List<MyCyhShopProduct> selectMyCyhShopProductListMe(String[] split);

    List<Integer>  selectByCattleUserId(Integer mid);
}
